package com.example.a10928.weifriend.http.configuration;

import com.google.gson.FieldNamingStrategy;

import java.lang.reflect.Field;
import java.util.Locale;

/**
 * Created by Chuang on 2018/2/26.
 * 将接收的数据进行小写转换
 */

public class LowerCaseFieldNamingStrategy implements FieldNamingStrategy {
    @Override
    public String translateName(Field f) {
        return f.getName().toLowerCase(Locale.US);
    }
}
